package c.p;

import java.text.MessageFormat;
import java.util.Date;

public class Print {
    public static void main(String[] args) {
        System.out.println(MessageFormat.format("我是{0}个粉刷匠，粉刷{1}强。", "一", "本领"));
        int planet = 7;
        String event = "a disturbance in the Force";

        String result = MessageFormat.format(
            "At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.",
            planet, new Date(), event);
        System.out.println(result);
    }

}
